From cf97f3186f6377e7e71eb2f7b5dee4c427381850 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild2.aw" Date: Fri, 26 Jan 2007 14:19:37 -0700 Subject: [PATCH] [IA64] Register NEW_TLBFLUSH_CLOCK_PERIOD_SOFTIRQ NEW_TLBFLUSH_CLOCK_PERIOD_SOFTIRQ is used but not registered. I've never experienced but system will panic in the very long run. Signed-off-by: Kouya Shimura --- xen/arch/ia64/xen/xensetup.c | 5 +++++ xen/include/asm-ia64/flushtlb.h | 1 + 2 files changed, 6 insertions(+) diff --git a/xen/arch/ia64/xen/xensetup.c b/xen/arch/ia64/xen/xensetup.c index 0d1eaf23dd..3f7b9f1f47 100644 --- a/xen/arch/ia64/xen/xensetup.c +++ b/xen/arch/ia64/xen/xensetup.c @@ -26,6 +26,7 @@ #include #include #include +#include unsigned long xenheap_phys_end, total_pages; @@ -436,6 +437,10 @@ void start_kernel(void) init_xen_time(); /* initialise the time */ timer_init(); +#ifdef CONFIG_XEN_IA64_TLBFLUSH_CLOCK + open_softirq(NEW_TLBFLUSH_CLOCK_PERIOD_SOFTIRQ, new_tlbflush_clock_period); +#endif + #ifdef CONFIG_SMP if ( opt_nosmp ) { diff --git a/xen/include/asm-ia64/flushtlb.h b/xen/include/asm-ia64/flushtlb.h index 0966d72711..b470ac1615 100644 --- a/xen/include/asm-ia64/flushtlb.h +++ b/xen/include/asm-ia64/flushtlb.h @@ -32,6 +32,7 @@ extern volatile u32 tlbflush_clock; #define tlbflush_current_time() tlbflush_clock u32 tlbflush_clock_inc_and_return(void); +void new_tlbflush_clock_period(void); static inline void tlbflush_update_time(volatile u32* time, u32 timestamp) -- 2.30.2